home *** CD-ROM | disk | FTP | other *** search
- .geometry "version 0.1";
- v1 = .free(0.603283, 0.140903, "1");
- v2 = .free(-0.340629, 0.428181, "2");
- v3 = .free(-0.589603, -0.201094, "3");
- v4 = .free(0.367989, -0.406293, "4");
- l1 = .l.vv(v1, v2);
- l2 = .l.vv(v2, v3);
- l3 = .l.vv(v3, v4);
- l4 = .l.vv(v4, v1);
- v5 = .v.vvmid(v1, v4, .invisible);
- v6 = .v.vvmid(v4, v3, .invisible);
- v7 = .v.vvmid(v3, v2, .invisible);
- v8 = .v.vvmid(v2, v1, .invisible);
- c1 = .c.vv(v6, v4, .invisible);
- c2 = .c.vv(v5, v4, .invisible);
- c3 = .c.vv(v8, v1, .invisible);
- c4 = .c.vv(v7, v3, .invisible);
- l5 = .l.vlperp(v7, l2, .invisible, .longline);
- l6 = .l.vlperp(v6, l3, .invisible, .longline);
- l7 = .l.vlperp(v5, l4, .invisible, .longline);
- l8 = .l.vlperp(v8, l1, .invisible, .longline);
- v9 = .v.lc(l8, c3, 1);
- v10 = .v.lc(l5, c4, 1);
- v11 = .v.lc(l6, c1, 1);
- v12 = .v.lc(l7, c2, 1);
- l9 = .l.vv(v3, v11);
- l10 = .l.vv(v11, v4);
- l11 = .l.vv(v4, v12);
- l12 = .l.vv(v12, v1);
- l13 = .l.vv(v1, v9);
- l14 = .l.vv(v9, v2);
- l15 = .l.vv(v2, v10);
- l16 = .l.vv(v10, v3);
- l17 = .l.vv(v10, v12, .red);
- l18 = .l.vv(v11, v9, .red);
- .text("Construct a 45-45-90 triangle on the sides of an arbitrary");
- .text("quadrilateral, and connect the opposite apexes of the triangles so");
- .text("consturcted (the red lines). Those lines are the same length,");
- .text("and are perpendicular. You can move any of the points 1, 2, 3,");
- .text("and 4 to try the theorem for different quadrilaterals.");
-